<!DOCTYPE html >
<html>
<head>
    <meta name="Generator" content="ECSHOP v2.7.3" />
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>修改密码  </title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <link rel="stylesheet" href="/template/default/css/public.css">
    <link rel="stylesheet" href="/template/default/css/loginxin.css">
    <script type="text/javascript" src="https://static.9hive.cn/global/vendor/jquery/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
</head>
<body>
<div class="tab_nav">
    <div class="header">
        <div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"><img src="/template/default/images/arrow_left_white.png"/></a></div>
        <div class="h-mid">修改密码</div>
    </div>
</div>

<form action="/b/password/update" method="post"  method="post" onsubmit="return checkInfo();">
    <div class="layout">
        <div class="ng_form" id="form-area">
            <form action="user.php" method="post" class="c-form login-form">
                <dl id="enter_user" >
                    <dt>旧密码</dt> <dd><input type="text" name="oldPassword" placeholder="请输入原始密码" class="enter-item "/></dd><span id="username_notice"></span>
                </dl>
                <dl>
                    <dt>新密码</dt>  <dd><input type="password" id="password"  name="member.password" class="enter-item "  value="" placeholder="密码" /></dd><span id="password_notice"> </span>
                </dl>
                <dl>
                    <dt>确认密码</dt>  <dd><input type="password" id="pwd" name="pwd" class="enter-item " value="" placeholder="确认密码" /></dd><span id="conform_password_notice"> </span>

                </dl>
                <div style="clear: both;padding-top: 20px">
                <input type="submit" class="button orange "value="提 交"></div>
            </form>
        </div>
    </div>
</form>
<%include("footer.html"){}%>
</body>
<script type="text/javascript">
    function checkInfo(){
        var oldPassword = $("input[name='oldPassword']").val();
		var password=$('#password').val();
		var pwd=$('#pwd').val();
        if(!oldPassword){
            layer.msg("请输入旧密码!");
            return false;
        }
		if(!password){
            layer.msg("请输入新密码!");
            return false;
		}
		if(!pwd){
            layer.msg("请输入确认新密码!");
            return false;
		}
        if(password!=pwd){
            layer.msg('新密码和确认密码不相同');
            return false;
        }else{
            return true;
        }
    }
</script>
</html>